﻿using System;

namespace Downloader
{
    public interface ISimpleCache
    {
        /// <summary>
        /// Saves data by name
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="value">The value.</param>
        void Save(String name, String value);

        /// <summary>
        /// Gets data
        /// </summary>
        /// <param name="name">The name.</param>
        /// <returns></returns>
        string Get(String name);

        /// <summary>
        /// Saves this instance.
        /// </summary>
        void Save();
    }
}
